FROM java:7
VOLUME /initial
RUN ls -al /initial
WORKDIR /initial
RUN gradlew build

RUN cp ./build/libs/gs-spring-boot-docker-0.1.0.jar /app.jar
#ADD gs-spring-boot-docker-0.1.0.jar app.jar
#RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
